<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="referrer" content="no-referrer">
    <title>Title</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<table class="table table-hover">
    <tr>
        <th>cno</th>
        <th>cname</th>
        <th>cpno</th>
        <th>ccredit</th>
        <th>tid</th>
        <th>cclass</th>
        <th>cnumber</th>
        <th>操作</th>
    </tr>
    <tr th:each="course:${courses}">
        <td th:text="${course.cno}"></td>
        <td th:text="${course.cname}"></td>
        <td th:text="${course.cpno}"></td>
        <td th:text="${course.ccredit}"></td>
        <td th:text="${course.tid}"></td>
        <td th:text="${course.cclass}"></td>
        <td th:text="${course.cnumber}"></td>
        <th><a th:href="@{/sc/deleteScBySno(sno=${session.student.sno},cno=${course.cno})}" style="color: red">退选</a></th>
    </tr>
</table>
</body>
</html>